﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuadRemote.Core
{
    class CommandIn
    {
        public byte packetId;
        public Boolean confirmed;
        public ushort remoteConfirm;
        public long sentAt;

        public CommandId command;
        public byte[] packet;

        public CommandIn(byte[] body)
        {
            command = (CommandId)body[0];
            this.packet = new byte[body.Length-1];
            Array.Copy(body, 1, this.packet, 0, this.packet.Length);
        }
    }
}
